home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / screen-profiles / keybindings / common next >
Encoding:
Text File  |  2009-04-08  |  2.1 KB  |  47 lines

  1. ###############################################################################
  2. #    GNU Screen common keybindings
  3. #      This configuration profile is intended to be a common header of useful
  4. #      keybindings, included by other profiles.
  5. #
  6. #    Copyright (C) 2008  Nick Barcet <nick.barcet@canonical.com>
  7. #
  8. #    This program is free software: you can redistribute it and/or modify
  9. #    it under the terms of the GNU General Public License as published by
  10. #    the Free Software Foundation, version 3 of the License.
  11. #
  12. #    This program is distributed in the hope that it will be useful,
  13. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. #    GNU General Public License for more details.
  16. #
  17. #    You should have received a copy of the GNU General Public License
  18. #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  19. ###############################################################################
  20.  
  21. # This file defines the common key bindings
  22. #
  23. # For a keybinding to live in the "common" area, it must be verified to
  24. # work in at least:
  25. #  * gnome-terminal
  26. #  * console tty
  27. #
  28. # bindkey commands should be followed by a comment that will be used in the
  29. # help file (one day).  The command should be formated as:
  30. #   # <key> | explanation
  31.  
  32. # F-keys seem to work well in both gnome-terminal and tty consoles
  33.                             # F1  | 'help' in gnome-terminal
  34. register n "^a^c^aA"                    #     | Goes with the F2 definition
  35. bindkey -k k2 process n                    # F2  | Create new window (and name it)
  36. bindkey -k k3 prev                    # F3  | Previous Window
  37. bindkey -k k4 next                    # F4  | Next Window
  38. register r "^a:source $HOME/.screen-profiles/profile"    #     | Goes with F5 definition
  39. bindkey -k k5 process r                    # F5  | Reload profile
  40. bindkey -k k6 detach                    # F6  | Detach from this session
  41. bindkey -k k7 copy                    # F7  | Enter copy/scrollback mode
  42. bindkey -k k8 help                    # F8  | Advanced help/keybindings
  43. bindkey -k k9 screen -t help 0 screen-profiles        # F9  | Configuration
  44.                             # F10 | 'toolbar' in gnome-terminal
  45.                             # F11 | 'fullscreen' in gnome-terminal
  46. bindkey -k F2 lockscreen                # F12 | Lock this terminal
  47.